package com.hengpeng.itfin.persist;

import java.util.Date;
import java.util.List;

import com.hengpeng.itfinbase.persist.SmsLog;
import com.hengpeng.itfinbase.persist.SmsLog.SmsLogState;
import com.hengpeng.itfinbase.persist.SmsLog.SmsLogTransType;

/**
 * <pre>
 * TODO 短信日志持久层接口
 * </pre>
 * @author pengfangliang
 * @version 1.0, 2010-9-3
 */
public interface SmsLogDao
{
	/**
	 * <pre>
	 *  新增短信日志
	 * </pre>
	 * @param smsLog
	 * @return
	 */
	public SmsLog insert(SmsLog smsLog);

	public int resetSmsForSending();

	public Long selectCountSmsLog(String content, String mobile, Integer retryCount, Date sendTime1, Date sendTime2,
			SmsLogState state, String storeId, Date successTime1, Date successTime2, SmsLogTransType type, String userId);

	public List<SmsLog> selectSmsLogPage(String content, String mobile, Integer retryCount, Date sendTime1,
			Date sendTime2, SmsLogState state, String storeId, Date successTime1, Date successTime2, SmsLogTransType type,
			String userId, int pageIndex, int pageSize);
}
